home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
272_01
/
getpos.doc
< prev
next >
Wrap
Text File
|
1986-09-23
|
818b
|
39 lines
NAME
getpos -- get current cursor position
SYNOPSIS
position = getpos(page);
unsigned int position; returned position
int page; video page to check
DESCRIPTION
Returns the row and column of the cursor on the specified
video page. Row is in upper 8 bits of returned integer
and column in lower 8 bits. Values are in binary.
EXAMPLE
unsigned int position;
short row, column;
position = getpos(0); /* on video page 0 */
row = (position >> 8) & 0xff;
column = position & 0xff;
This function is found in SMDLx.LIB for the Datalight Compiler